package com.esm.serviceimpl;

import java.util.List;

import com.esm.dao.DepartmentDao_lxy;
import com.esm.daoimpl.DepartmentDaoImpl_lxy;
import com.esm.model.Department_lxy;
import com.esm.model.User;
import com.esm.service.SelectDepartmentService_lxy;
/**
 * 这个类是实现了服务接口
 * @author liuxingyu
 *
 */
public class SelDepSerImpl_lxy implements SelectDepartmentService_lxy{
	DepartmentDao_lxy depDao=new DepartmentDaoImpl_lxy();
	@Override
	public int getDeparmentCount() {
		// TODO Auto-generated method stub
		return depDao.selectDeparmentCountBycourrentUid();
	}
	@Override
	public List<Department_lxy> getDeparments(int page,int rows) {
		// TODO Auto-generated method stub
		return depDao.selectDeparments(page, rows);
	}
 
}
